/**
 * 向cilent端发送信息
 */
#include "common.hpp"

int main()
{
    Shm shm;
    shm.createShm();//创建
    char* start = shm.processAssociation();//关联
    printf("server:");
    for(int i = 0;i<26;++i)
    {
        start[i] = ('a'+i);
        printf("%c",start[i]);
        fflush(stdout);
        start[i+1] = 0;
        sleep(1);
    }
    shm.deAssociation(start);
    shm.release();
    return 0;
}